package com.ruoyi.system.service;

import java.util.List;

import com.ruoyi.labdata.domain.LabFile;
import com.ruoyi.system.domain.ReceiptForm;

/**
 * 料单Service接口
 * 
 * @author ruoyi
 * @date 2022-02-16
 */
public interface IReceiptFormService 
{
    /**
     * 查询料单
     * 
     * @param instancetId 料单ID
     * @return 料单
     */
    public ReceiptForm selectReceiptFormById(Long instancetId);

    /**
     * 查询料单列表
     * 
     * @param receiptForm 料单
     * @return 料单集合
     */
    public List<ReceiptForm> selectReceiptFormList(ReceiptForm receiptForm);

    /**
     * 新增料单
     * 
     * @param receiptForm 料单
     * @return 结果
     */
    public int insertReceiptForm(ReceiptForm receiptForm);

    /**
     * 修改料单
     * 
     * @param receiptForm 料单
     * @return 结果
     */
    public int updateReceiptForm(ReceiptForm receiptForm);

    /**
     * 批量删除料单
     * 
     * @param instancetIds 需要删除的料单ID
     * @return 结果
     */
    public int deleteReceiptFormByIds(Long[] instancetIds);

    /**
     * 删除料单信息
     * 
     * @param instancetId 料单ID
     * @return 结果
     */
    public int deleteReceiptFormById(Long instancetId);
    
    public List<LabFile> getInstanceFiles(Long instancetId);
    
    public int commitReceiptForm(ReceiptForm receiptForm);
    
    public Integer getSequence(String maxKey);
    
}
